<?
/** @file
 * @author Andrzej Mararok Wasiak (mararok@gmail.com)
 */

/** Główny logger gry.
 */
final class MainLogger {
    private static $Instance = null;
    static function log($type, $msg, $user = -1) {
      if (MAIN_LOG) {
          if (!self::$Instance)
            self::$Instance = new Logger(DBPREFIX.'main_log');
          
          self::$Instance->log($type,$msg,$user);
       }
    }
}

require_once('ErrorHandler.php');

?>